var app = getApp();
var $ = require('../../utils/util.js');
var orderapi = require('../../api/orderAPI.js');
Page({
  data:{
    Logistics:{}
  },
  onLoad(options){
    // 生命周期函数--监听页面加载
    this.ExpressQuery(options.on);
  },
	ExpressQuery(on){
		var that=this;
		var val = {
			OrderNum: on
		}
		$.xsr($.makeUrl(orderapi.ExpressQuery, val), function(data) {
			data.Info.Traces.reverse()
			that.setData({
				Logistics:data.Info
			});
		});
	}
})